<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
  <bpmn:process id="SpringProcess" isExecutable="true">
    <bpmn:startEvent id="StartEvent_1">
      <bpmn:outgoing>SequenceFlow_1shqv2t</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:sequenceFlow id="SequenceFlow_1shqv2t" sourceRef="StartEvent_1" targetRef="ServiceTask_1r89gvm" />
    <bpmn:serviceTask id="ServiceTask_1r89gvm" name="increment counter" camunda:expression="${counter.increment()}">
      <bpmn:incoming>SequenceFlow_1shqv2t</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0zie8v5</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:endEvent id="EndEvent_0eztp8n" camunda:asyncBefore="true">
      <bpmn:incoming>SequenceFlow_00601zm</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="SequenceFlow_0zie8v5" sourceRef="ServiceTask_1r89gvm" targetRef="ServiceTask_1l2qa8o" />
    <bpmn:serviceTask id="ServiceTask_1l2qa8o" name="write count to variable" camunda:delegateExpression="${setCounterVariableTask}">
      <bpmn:incoming>SequenceFlow_0zie8v5</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_00601zm</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:sequenceFlow id="SequenceFlow_00601zm" sourceRef="ServiceTask_1l2qa8o" targetRef="EndEvent_0eztp8n" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="SpringProcess">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="173" y="102" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1shqv2t_di" bpmnElement="SequenceFlow_1shqv2t">
        <di:waypoint xsi:type="dc:Point" x="209" y="120" />
        <di:waypoint xsi:type="dc:Point" x="277" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="198" y="110" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ServiceTask_1r89gvm_di" bpmnElement="ServiceTask_1r89gvm">
        <dc:Bounds x="277" y="80" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_0eztp8n_di" bpmnElement="EndEvent_0eztp8n">
        <dc:Bounds x="604" y="102" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="577" y="138" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0zie8v5_di" bpmnElement="SequenceFlow_0zie8v5">
        <di:waypoint xsi:type="dc:Point" x="377" y="120" />
        <di:waypoint xsi:type="dc:Point" x="446" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="366.5" y="110" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ServiceTask_1l2qa8o_di" bpmnElement="ServiceTask_1l2qa8o">
        <dc:Bounds x="446" y="80" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_00601zm_di" bpmnElement="SequenceFlow_00601zm">
        <di:waypoint xsi:type="dc:Point" x="546" y="120" />
        <di:waypoint xsi:type="dc:Point" x="604" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="555.5" y="110" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
